package com.yt.mapper;

import com.yt.entity.Author;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
public interface AuthorMapper {
    @Select("select * from author where id =#{id}")
    Author getAuthorById(Integer id);
}
